/***********************************************************************
 * Module:  Vip.java
 * Author:  p1102040
 * Purpose: Defines the Class Vip
 ***********************************************************************/

package gestionVip;
import application.appli;
import java.util.ArrayList;
import java.util.List;
import java.util.TreeMap;

public class Vip {
   public int idVIP;
   public String nom;
   public String prenom;
   public int age;
   public String nationnalite;
   public java.lang.Object photo;
   public String type;   
   public int qa;
   public String compagnon;

    public Vip(int idVIP, String nom, String prenom, int age, String nationnalite, Object photo, String type, int qa, String compagnon) {
        this.idVIP = idVIP;
        this.nom = nom;
        this.prenom = prenom;
        this.age = age;
        this.nationnalite = nationnalite;
        this.photo = photo;
        this.type = type;
        this.qa = qa;
        this.compagnon = compagnon;
    }
   
   public void creerFiche(Vip v) {
       //listeVip.put(v.getIdVIP(),v);
   }
    
   
   
   public void supprimerFiche(int idVip) {
       appli.listeVip.remove(idVip);
   }

   public void modifierFiche(int idVIP, String nom, String prenom, int age, String nationnalite, Object photo, String type, int qa, String compagnon) {
     /* listeVip.put(idVIP).setNom(nom);
      listeVip.get(idVIP).setPrenom(prenom);
      listeVip.get(idVIP).setAge(age);
      listeVip.get(idVIP).setNationnalite(nationnalite);
      listeVip.get(idVIP).setPhoto(photo);
      listeVip.get(idVIP).setType(type);
      listeVip.get(idVIP).setQa(qa);
      listeVip.get(idVIP).setCompagnon(compagnon);*/
   }
   
   public boolean verifExist() {
      // TODO: implement
      return false;
   }

   public int getIdVIP() {
      return idVIP;
   }
   
   public void setIdVIP(int newIdVIP) {
      idVIP = newIdVIP;
   }
   
   public String getNom() {
      return nom;
   }
   
   public void setNom(String newNom) {
      nom = newNom;
   }
   
   public String getPrenom() {
      return prenom;
   }
   

   public void setPrenom(String newPrenom) {
      prenom = newPrenom;
   }
   
   public int getAge() {
      return age;
   }
   
   public void setAge(int newAge) {
      age = newAge;
   }
   
   public String getNationnalite() {
      return nationnalite;
   }
   
   public void setNationnalite(String newNationnalite) {
      nationnalite = newNationnalite;
   }

   public java.lang.Object getPhoto() {
      return photo;
   }
   

   public void setPhoto(java.lang.Object newPhoto) {
      photo = newPhoto;
   }

   public String getType() {
      return type;
   }

   public void setType(String newType) {
      type = newType;
   }

   public int getQa() {
      return qa;
   }
   

   public void setQa(int newQa) {
      qa = newQa;
   }

   public String getCompagnon() {
      return compagnon;
   }

   public void setCompagnon(String newCompagnon) {
      compagnon = newCompagnon;
   }
   
      public void afficher(){
       System.out.println("\nId : " + idVIP + "\nNom : " + nom + "\nPrenom : " + prenom + "\nAge : " + age + "\nNat : " + nationnalite + "\nphoto : " + photo + "\nType : " + type + "\nQA :" + qa + "\nCompagnon : " +compagnon);
   }

}